<h1>Listing phases</h1>

<table>
  <thead>
    <tr>
      <th>Phasetype</th>
      <th>Node</th>
      <th>Completionstatus</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @phases.each do |phase| %>
      <tr>
        <td><%= phase.phaseType.name %></td>
        <td><%= link_to phase.node.name , phase.node %></td>
        <td><%= phase.completionStatus %></td>
        <td><%= link_to 'Show', phase %></td>
        <td><%= link_to 'Edit', edit_phase_path(phase) %></td>
        <td><%= link_to 'Destroy', phase, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Phase', new_phase_path %>
